﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using MvcEngine.Core.Localization;

namespace MvcEngine.Core
{
    public class PermissionException: Exception
    {
        private string message = string.Empty;  

        public PermissionException(string message)
        {
            this.message = message;
        }

        public PermissionException()
        {
            message = ResourceReader.Current.GetString("PermissionExceptionText");
        }

        public override string Message
        {
            get
            {
                return message;
            }
        }
    }
}
